package com.springfairy.service;

import com.springfairy.model.MoodTrack;
import com.springfairy.model.MoodTrackPoints;

import java.util.List;

public interface MoodTrackService {
    MoodTrack createTrack(MoodTrack track);

    MoodTrack createCustomTrack(MoodTrack track);

    List<MoodTrack> getTracksByUser(int userId);
    MoodTrack getTrackById(int id);
    MoodTrack updateMoodTrack(MoodTrack moodTrack);
    boolean deleteTrack(int id);

    // 心情点管理
    MoodTrackPoints addTrackPoint(Integer trackId, MoodTrackPoints point);
    List<MoodTrackPoints> getPointsByTrack(int trackId);
    boolean deletePoint(int pointId);

    MoodTrackPoints updatePoint(MoodTrackPoints point);
}

